# project root path
PROJECT ("Galaxy")

SET(GBDT "gbdt")

FILE(GLOB_RECURSE GBDT_SRC RELATIVE ${PROJECT_SOURCE_DIR}  
    ../algo/gbdt*.cc
)

MESSAGE(STATUS "GBDT_SRC: ${GBDT_SRC}")

ADD_LIBRARY("${GBDT}" SHARED ${GBDT_SRC})
#TARGET_LINK_LIBRARIES(${GBDT} "pthread")


###########################################################
###########################################################

SET(INSTANCE_SWAP "instance_swap")

FILE(GLOB_RECURSE INSTANCE_SWAP_SRC RELATIVE ${PROJECT_SOURCE_DIR}  
    ../algo/instance_swap.cc
)
MESSAGE(STATUS "INSTANCE_SWAP_SRC: ${INSTANCE_SWAP_SRC}")

ADD_EXECUTABLE(${INSTANCE_SWAP} ${INSTANCE_SWAP_SRC})
TARGET_LINK_LIBRARIES(${MPI_RUNNER} "pthread")

